# ！/usr/bin/env python3
# -*- coding: utf-8 -*-
'a student class'
__author__='wafcc'

class Student(object):
	"""docstring for Sutdent"""
	def __init__(self, name,score):
		self.name=name
		self.__score=score
	def print_score(self):
		print('%s:%s'%(self.name,self.__score))

# xm = Student("小明",58)
# xm.print_score()
# print(xm.name)

# xm.name="小红"
# print(xm.name)

class Screen(object):
	@property
	def Width(self):
		return self._Width
	@Width.setter
	def Width(self,value):
		self._Width=value

	@property
	def Height(self):
		return self._Height
	@Height.setter
	def Height(self,value):
		self._Height=value

	@property
	def resolution(self):
		return self._Width*self._Height

	def __call__(self):
		print('My Height is %d'%self._Height)

s = Screen()
s.Width = 1024
s.Height = 768
print(s.Width)
print(s.Height)
print('resolution:',s.resolution)
if s.resolution == 786432:
    print('测试通过!')
else:
    print('测试失败!')
s()